<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品名称：</label>
                            <div class="col-sm-10">
                                <input id="goodsGoodsName" name="goodsGoodsName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <input id="goodsDesc" name="goodsDesc" type="hidden"> <label
                                class="col-sm-2 control-label">商品详情：</label>
                            <div class="col-sm-10">
                                <div class="ibox-content no-padding">
                                    <div id="goodsDescInput" class="summernote"></div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <input id="goodsPicUrl" name="goodsPicUrl" class="form-control" type="hidden">
                            <label class="col-sm-2 control-label">商品图片：</label>
                            <div class="col-sm-10">
                                <button type="button" class="layui-btn" id="goodsPic">
                                    上传图片
                                </button>
                                <div class="layui-upload-list">
                                    <img class="layui-upload-img" id="picShow">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品分类：</label>
                            <div class="col-sm-10">
                                <input id="goodsCategoryId" name="goodsCategoryId" class="hidden">
                                <input
                                        id="goodsCategoryName" name="goodsCategoryName" class="form-control" type="text"
                                        style="cursor: pointer;" onclick="openCategory()"
                                        readonly="readonly" placeholder="商品所属分类">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品编号：</label>
                            <div class="col-sm-10">
                                <input id="goodsGoodsNo" name="goodsGoodsNo" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品售价：</label>
                            <div class="col-sm-10">
                                <input id="goodsPrice" name="goodsPrice" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品原价：</label>
                            <div class="col-sm-10">
                                <input id="goodsOriginPrice" name="goodsOriginPrice" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否热销：</label>
                            <div class="switch onoffswitch col-sm-10">
                                <div class="onoffswitch">
                                    <input id="goodsIsHot" name="goodsIsHot" checked=""
                                           type="checkbox" value="1" class="onoffswitch-checkbox"
                                           id="example0"> <label class="onoffswitch-label"
                                                                 for="example0"> <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">是否上架：</label>
                                <div class="switch onoffswitch col-sm-10">
                                    <div class="onoffswitch">
                                        <input id="goodsIsShelves" name="goodsIsShelves" checked=""
                                               type="checkbox" value="1" class="onoffswitch-checkbox"
                                               id="example1"> <label class="onoffswitch-label"
                                                                     for="example1"> <span
                                            class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">剩余库存：</label>
                                <div class="col-sm-10">
                                    <input id="goodsSaleQuantity" name="goodsSaleQuantity" class="form-control"
                                           type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/fx/goodsInfo/add.js">
</script>
</body>
</html>
